package com.appkubes.portal.admin.application.app.menu.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@ApiModel(description = "添加根菜单")
public class MenuAddRootVO {

    @ApiModelProperty("菜单Key")
    String menuKey = "";

    @ApiModelProperty("菜单名")
    @NotEmpty(message = "菜单名不能为空")
    String menuName;

    @ApiModelProperty("菜单类型: NORMAL| EXTERN : 外部菜单")
    String menuType = "NORMAL";

    @ApiModelProperty("菜单地址")
    String action;

    @ApiModelProperty("菜单地址")
    String redirectUrl;

    @ApiModelProperty("组件路径")
    String component;

    @ApiModelProperty("菜单图标")
    String icon;

    @ApiModelProperty("排序")
    Integer sort;
}
